package com.vegetable.modules.entity.stock.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 价格预警记录查询参数
 *
 * @author qoder
 * @since 2025-09-11
 */
@Data
@ApiModel(value = "PriceAlertRecordQueryPO", description = "价格预警记录查询参数")
public class PriceAlertRecordQueryPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品名称(模糊查询)")
    private String commodityNameLike;

    @ApiModelProperty(value = "预警状态(0未处理,1已处理,2已忽略)")
    private Integer alertStatus;

    @ApiModelProperty(value = "商品分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "订单日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    @ApiModelProperty(value = "页码", example = "1")
    private Long page = 1L;

    @ApiModelProperty(value = "每页数量", example = "10")
    private Long size = 10L;

}